<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>SkinCare</title>
    <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.js"></script>
    <script type="text/javascript">
      $(document).ready(
        function(){
          $('#imagefile').change(
            function(){
              if ($(this).val()){
                $('#formupload').submit();
              }
            }
          );
        }
      );
    </script>
  </head>

  <body>
      <form id="formupload" class="form-inline" role="form" action="classify_upload" method="post" enctype="multipart/form-data">
        <div class="form-group">
        <select name="light">
			<option value="rgd">rgz</option>
			<option value="pzd">pzd</option>
			<option value="uvd">uvd</option>
		</select>

          <input type="file" multiple="multiple" name="imagefile" id="imagefile">
        </div>
      </form>

    </div>
    <hr>
 </body>
</html>
